yum remove git -y

yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel  gcc gcc-c++ perl-ExtUtils-MakeMaker

cd /tmp
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.22.0.tar.gz
tar xzf git-2.22.0.tar.gz
cd git-2.22.0
make prefix=/usr/local/git all
make prefix=/usr/local/git install
echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
source /etc/bashrc

